﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Tencent.OA.App;
using Tencent.OA.ACM.Entity;
using Microsoft.Practices.Unity;
using Tencent.OA.ACM.Service.Interface;
using Tencent.OABanche.App;
namespace Tencent.OA.ACM.App
{
    /// <summary>
    /// 控件的数据源提供类
    /// </summary>
    public class ControlDataSourceExtension
    {        
       
        ///// <summary>
        ///// 地区
        ///// </summary>
        ///// <param name="needNullValue">是否需要空值</param>
        ///// <returns></returns>
        //public IList<SelectListItem> GetCity(bool needNullValue)
        //{
        //    IList<SelectListItem> dsList = new List<SelectListItem>();
        //    IList<CityInfo> city = pxyCityInfo.FindAll();
        //    if (needNullValue)
        //    {
        //        dsList.Add(new SelectListItem() { Text = "----全部----", Value = "" });
        //    }

        //    foreach (var c in city)
        //    {
        //        var item = new SelectListItem() { Text = c.CityName, Value = c.CityId.ToString() };
        //        dsList.Add(item);
        //    }
        //    return dsList;
        //}

    }
}
